﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Manager_Users_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" />
    <ext:Panel ID="Panel1" runat="server" BodyPadding="2px" EnableBackgroundColor="false" Layout="Container"
        ShowBorder="false" ShowHeader="true" Title="用户管理" AutoHeight="true" AutoWidth="true" BoxConfigAlign="Top">
        <Items>
            <ext:Grid ID="gridProduct" runat="server" EnableRowNumber="true" EnableCheckBoxSelect="false"
                Title="用户管理" AllowPaging="false" AutoHeight="True" ShowHeader="false" AutoWidth="true"
                OnRowCommand="gridProduct_RowCommand"
                DataKeyNames="ID,TName" PageSize="10">
                <Toolbars>
                    <ext:Toolbar ID="Toolbar1" runat="server">
                        <Items>
                            <ext:Button ID="btnNew" Text="新增用户" Icon="Add" EnablePostBack="false" runat="server">
                            </ext:Button>
                        </Items>
                    </ext:Toolbar>
                </Toolbars>
                <Columns>
                    <ext:BoundField HeaderText="登录名" ExpandUnusedSpace="true" DataField="TName" />
                    <ext:BoundField HeaderText="真实姓名" Width="100px" DataField="ReallyName" />
                    <ext:TemplateField HeaderText="用户类型" Width="150px">
                        <ItemTemplate>
                            <%#GetUserTypeName(int.Parse(Eval("RoleID").ToString()))%>
                        </ItemTemplate>
                    </ext:TemplateField>
                    <ext:WindowField HeaderText="编辑" Width="50px" Title="编辑" Text="编辑" DataIFrameUrlFormatString="Edit.aspx?ID={0}"
                        WindowID="Win_Edit" DataIFrameUrlFields="ID" />
                    <ext:LinkButtonField Width="50px" Text="删除" ConfirmText="确定删除？" HeaderText="删除" ConfirmTarget="Top"
                        CommandName="Delete" />
                </Columns>
            </ext:Grid>
        </Items>
    </ext:Panel>
    <ext:Window ID="Win_Edit" runat="server" Height="400px" IsModal="true" Hidden="true"
        Popup="false" Title="" Width="500px" EnableIFrame="true" OnClose="Win_Close"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" Target="Parent" IFrameUrl="about:blank">
    </ext:Window>
    </form>
</body>
</html>
